package org.dong.common.utils;

import java.io.File;
import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import org.springframework.core.io.DefaultResourceLoader;


public class commonUtil {
	
	private final static String PATH_SOURCE="source";
	
	public static String getProjectPath(HttpServletRequest req) throws IOException{
		return req.getSession().getServletContext().getContextPath();
	}
	public static String getSourcePath(HttpServletRequest req) throws IOException{
		return req.getSession().getServletContext().getRealPath("/")+PATH_SOURCE;
	}
	private commonUtil() {
		
	}
}
